home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSSSSSIIIIGGGGNNNNAAAALLLL((((3333CCCC)))) SSSSSSSSIIIIGGGGNNNNAAAALLLL((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- ssignal, gsignal - software signals
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssiiiiggggnnnnaaaallll....hhhh>>>>
-
- iiiinnnntttt ((((****ssssssssiiiiggggnnnnaaaallll((((iiiinnnntttt ssssiiiigggg,,,, iiiinnnntttt ((((****aaaaccccttttiiiioooonnnn))))((((iiiinnnntttt))))))))((((iiiinnnntttt))));;;;
-
- iiiinnnntttt ggggssssiiiiggggnnnnaaaallll((((iiiinnnntttt ssssiiiigggg))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _s_s_i_g_n_a_l and _g_s_i_g_n_a_l implement a software facility similar to _s_i_g_n_a_l(2).
- This facility is used by the Standard C Library to enable users to
- indicate the disposition of error conditions, and is also made available
- to users for their own purposes.
-
- Software signals made available to users are associated with integers in
- the inclusive range 1 through 16. A call to _s_s_i_g_n_a_l associates a
- procedure, _a_c_t_i_o_n, with the software signal _s_i_g; the software signal,
- _s_i_g, is raised by a call to _g_s_i_g_n_a_l. Raising a software signal causes
- the action established for that signal to be _t_a_k_e_n.
-
- The first argument to _s_s_i_g_n_a_l is a number identifying the type of signal
- for which an action is to be established. The second argument defines the
- action; it is either the name of a (user-defined) _a_c_t_i_o_n _f_u_n_c_t_i_o_n or one
- of the manifest constants SSSSIIIIGGGG____DDDDFFFFLLLL (default) or SSSSIIIIGGGG____IIIIGGGGNNNN (ignore). _s_s_i_g_n_a_l
- returns the action previously established for that signal type; if no
- action has been established or the signal number is illegal, _s_s_i_g_n_a_l
- returns SSSSIIIIGGGG____DDDDFFFFLLLL.
-
- _G_s_i_g_n_a_l raises the signal identified by its argument, _s_i_g:
-
- If an action function has been established for _s_i_g, then that action
- is reset to SSSSIIIIGGGG____DDDDFFFFLLLL and the action function is entered with argument
- _s_i_g. _G_s_i_g_n_a_l returns the value returned to it by the action
- function.
-
- If the action for _s_i_g is SSSSIIIIGGGG____IIIIGGGGNNNN, _g_s_i_g_n_a_l returns the value 1 and
- takes no other action.
-
- If the action for _s_i_g is SSSSIIIIGGGG____DDDDFFFFLLLL, _g_s_i_g_n_a_l returns the value 0 and
- takes no other action.
-
- If _s_i_g has an illegal value or no action was ever specified for _s_i_g,
- _g_s_i_g_n_a_l returns the value 0 and takes no other action.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- signal(2), sigset(2).
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSSSSSIIIIGGGGNNNNAAAALLLL((((3333CCCC)))) SSSSSSSSIIIIGGGGNNNNAAAALLLL((((3333CCCC))))
-
-
-
- NOTES
- There are some additional signals with numbers outside the range 1
- through 16 which are used by the Standard C Library to indicate error
- conditions. Thus, some signal numbers outside the range 1 through 16 are
- legal, although their use may interfere with the operation of the
- Standard C Library.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-